﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ywxt.Common;

namespace DB_NH.DB_Model.FYBZ
{
    /// <summary>
    /// 费用报账审批流程
    /// </summary>
    public class wf_fybz
    {
        #region 数据表名称
        public static readonly string TableName = "wf_fybz";
        #endregion

        #region 字段

        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string n_id { get; set; }

        /// <summary>
        /// 票据数量
        /// </summary>
        public virtual int pjsl { get; set; }

        /// <summary>
        /// 金额大写
        /// </summary>
        public virtual string jedx { get; set; }

        /// <summary>
        /// 金额小写
        /// </summary>
        public virtual string jexx { get; set; }

        /// <summary>
        /// 费用所属部门
        /// </summary>
        public virtual ywxt.t_sys_department fy_dept { get; set; }

        /// <summary>
        /// 费用所属项目
        /// </summary>
        public virtual ywxt.t_project fy_proj { get; set; }

        /// <summary>
        /// 费用报账的详单记录
        /// </summary>
        public virtual IList<wf_fybz_detail> details { get; set; }

        /// <summary>
        /// 记录是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }

        /// <summary>
        /// 审批记录ID
        /// </summary>
        public virtual string ApprovalRecordId { get; set; }

        /// <summary>
        /// 审批结束标志：-1：不通过结束；0：审批中；1：结束
        /// </summary>
        public virtual int sqEndFlag { get; set; }

        /// <summary>
        /// 审批结束日期
        /// </summary>
        public virtual DateTime sqEndDate { get; set; }

        /// <summary>
        /// 审批结束描述
        /// </summary>
        public virtual string ProcessDescribe { get; set; }
        #endregion

        public wf_fybz()
        {
            n_id = Common.NewID();
            is_valid = 1;
            create_date = DateTime.Now;

            fy_dept = new ywxt.t_sys_department();
            fy_proj = new ywxt.t_project();
            details = new List<wf_fybz_detail>();
        }
    }
}
